﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="askcategory.ascx.cs" Inherits="Control_askcategory" %>
<div class="yhzx_1_4">
    <div class="yhzx_1_5">
        <div class="yhzx_1_6">
            <div class="bxwd_1_17">
                问答分类</div>
        </div>
    </div>
    <div class="bxwd_1_21">
        <div class="bxwd_1_18">
            <%foreach (MatchIns.Model.TCategory item in ds)
              { %>
            <%if (item.ParentID != 0) continue; %>
            <div class="bxwd_1_19">
                <div class="bxwd_1_20">
                    <%=item.CategoryName %></div>
                <div class="bxwd_1_22">
                    <ul>
                        <%child = ds.FindAll(delegate(MatchIns.Model.TCategory d) { return d.ParentID == item.CategoryID; }); %>
                        <%foreach (MatchIns.Model.TCategory childitem in child)
                          { %>
                        <li><a href="?categoryid=<%=childitem.CategoryID %>" style="color:#3869AB"><%=childitem.CategoryName %></a></li>
                        <%} %>
                    </ul>
                    <div class="bxwd_1_23">
                        <img src="/images/answer/iog3.gif"></div>
                </div>
            </div>
            <%} %>
           
        </div>
    </div>
</div>
